home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
demo
/
medmfc.zip
/
README.1
< prev
next >
Wrap
Text File
|
1994-06-27
|
4KB
|
123 lines
A CEdit and CEditView Replacement for
the Microsoft Foundation Classes
--------------------------------------
incorporating the
Magma Editor DLL for Microsoft Windows
--------------------------------------
(C) Copyright 1994 Magma Systems All Rights Reserved
Magma Systems
15 Bodwell Terrace
Millburn, New Jersey 07041
USA
(201) 912-0192 (voice)
(201) 912-0103 (fax)
(201) 912-0668 (BBS, 9600-1200 N-8-1)
Compuserve : 75300,2062
To get to our conference, GO MAGMA
Bix : 'magma'
To get to our conference, 'join magma'
Internet : 75300.2062@compuserve.com
magma@bix.com
(The following is rough documentation for the Magma Editor DLL.
Please send all your comments to Magma Systems)
The CMagmaEdit Class
--------------------
The CEdit editor class from the Microsoft Foundation Classes (MFC) has
a limitation in that it cannot edit more than 64K bytes of text.
The Magma Editor DLL overcomes this restriction by allowing you to edit
text as large as the memory which Microsoft Windows will globally allocate.
We have created a new MFC class called CMagmaEdit which is inherited from
the CEdit class. Most of the editing operations which are supported
by the CEdit class are also supported by the CMagmaEdit class. In addition,
the Magma Editor DLl has the following features :
- Regular expression search and substitution
- Various block operations. Line marking, column marking, block
marking, and discontiguous line marking.
- Keyboard macros
- Messages to read and write to files.
- More varieties of cursor movement. Ability to jump to a specific line,
and to set bookmarks in the text.
- The ability to be in overstrike as well as in insert mode.
A full list of features can be found by reading the file EDITOR.DOC which
is enclosed in this file.
The CMagmaEditView Class
------------------------
The CEditView class from the Microsoft Foundation Classes is used as a
wrapper around the CEdit class in order to create text editing windows
which contain more capabilities than the standard CEdit class offers.
For example, using the CEditView class, you can easily build an MDI-based
text editor which incorporates search-and-replace and printing.
The Multipad sample application is a good demonstration of the CEditView
class. In a few lines, one can build a full MDI-based text editor.
We have enhanced Multipad so that it uses the CMagmaEditView and the
CMamaEdit classes. We have also enhanced Multipad so that more information
is displayed in the status line.
Using the CMagmaEditView class instead of the CEditView class is as
easy as substituting the string 'CMagmaEditView' for 'CEditView'.
The only change which we originally made in the Multipad source
code to use the CMagmaEditView class was in the following statement :
AddDocTemplate(new CMultiDocTemplate(IDR_TEXTTYPE,
RUNTIME_CLASS(CPadDoc), RUNTIME_CLASS(CMDIChildWnd),
RUNTIME_CLASS(CEditView)));
was changed to
AddDocTemplate(new CMultiDocTemplate(IDR_TEXTTYPE,
RUNTIME_CLASS(CPadDoc), RUNTIME_CLASS(CMDIChildWnd),
RUNTIME_CLASS(CMagmaEditView)));
^^^^^^^^^^^^^^
We have enclosed the full source code to the CMagmaEditView and
CMagmaEdit classes. The files of interest are MAGMAED.CPP and
MAGMAED.HPP. You may feel free to enhance these files, but if
you do, we at Magma Systems would appeciate hearing about any
good changes you made.
Limitations of the Demo
-----------------------
The 'Lite' version of the Magma Editor DLL is limited to 100 lines.
For More Information
--------------------
The file MED100.ZIP contains a multi-file MDI-based text editor
which demonstrates additional capabilities of the Magma Editor DLL.
The Magma Editor DLL is supported in the MAGMA conference on CompuServe.
To get to our conference, enter the command GO MAGMA.
We can also be reached by the Internet at magma@bix.com or
75300.2062@compuserve.com.